{ INFORMATICS.MCCME.RU
  Problem statement: http://informatics.mccme.ru/moodle/mod/statements/view3.php?chapterid=253
  Verdict: Accepted
}
var a:longint;
begin
assign(input,'input.txt');
assign(output,'output.txt');
reset(input);
rewrite(output);
read(a);
if a mod 400=0 then write('YES') else
if a mod 100=0 then write('NO') else
if a mod 4=0 then write('YES') else write('NO');
end.